<%@page import="com.ambow.Entity.TextBook"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="zh-CN" />
<meta name="Keywords" content="关键词1,关键词2，关键词3,关键词4,……" />
<meta name="Description" content="你网页的简述" />
<meta name="Robots" content="All" />
<meta name="Generator" content="Dreamweaver" />
<title>菜单管理</title>
<link href="<%=path %>/static/css/css.css" rel="stylesheet" type="text/css" />
</head>

<body>
<h3 id="subTitle">书藉管理</h3>

<ul id="button">
	<li><a href="<%=path %>/pages/module/book/book001/book_add.jsp">添加</a></li>
</ul>

<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" class="table2">
    <form action=" <%=path %>/Book_showServlet?val=book_query" method="post" name="form2" id="form2">
        <tr>
            <td align="left" nowrap="nowrap">
			教材名称：<input name="name" type="text" />
			&nbsp;&nbsp;作者：<input name="author" type="text" />
			&nbsp;&nbsp;出版社：<input name="house" type="text" />
              <input name="Submit" type="submit" class="buttonInp" value="查 询" /></td>
        </tr>
    </form>
</table>
<table width="90%"  border="0" align="center" cellpadding="0" cellspacing="0" class="table" style="margin-top:10px;">
    <form action="" method="post" name="form1" id="form1">
        <tr>
          <th width="9%" align="center" nowrap="nowrap" class="title2">ISBN<br></th>
          <th width="23%" align="center" nowrap="nowrap" class="title2">书名<br></th>
          <th width="11%" align="center" nowrap="nowrap" class="title2">作者<br></th>
          <th width="14%" align="center" nowrap="nowrap" class="title2">版次<br></th>
          <th width="23%" align="center" nowrap="nowrap" class="title2">出版社<br></th>
         
			<th width="12%" align="center" nowrap="nowrap" class="title2">操作</th>
        </tr>
       <%
			  List list = (List) request.getAttribute("books");
          if(list!=null)   { 
			  for (int i = 0; i < list.size(); i++) {
				  TextBook tb = (TextBook)list.get(i);
			%>
			<tr class="within2bg">
				<td align="center"><%=tb.getISBN()%></td>
				<td align="center"><%=tb.getName()  %></td>
				<td align="center"><%=tb.getAuthor() %><br></td>
				<td align="center"><%=tb.getRevision() %></td>
				<td align="center"><%=tb.getPublish() %></td>
			
				<td align="center"><a href="pages/module/book/book001/book_modify.jsp?id=<%=tb.getId()%>&remark=<%=tb.getRemark() %>
				&price=<%=tb.getPrice()%>&isbn=<%=tb.getISBN() %>&name=<%=tb.getName()%>&author=<%=tb.getAuthor()%>&version=<%=tb.getRevision()%>
				&publish=<%=tb.getPublish()%>&date=<%=tb.getPublishTime()%>
				
				
				">修改</a>
					&nbsp;&nbsp;&nbsp;<a href="<%=path%>/Book_showServlet?val=delete&id=<%=tb.getId()%>">删除</a></td>
			</tr>
			<%
			  }
          }
			%>
       
   
        <tr align="center" class="within2bg">
            <td colspan="7" class="no_note">没有符合条件的记录</td>
        </tr>
    </form>
</table>

</body>
</html>